﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConfigMeister
{
    public class TexCoords
    {
        public double U;
        public double V;

        public TexCoords(double u, double v)
        {
            U = u;
            V = v;
        }
    }

    public class Triangle : RenderObject
    {
        private double _multiplier;

        private Point3 _pointA;
        private Point3 _pointB;
        private Point3 _pointC;

        private TexCoords _coordA;
        private TexCoords _coordB;
        private TexCoords _coordC;

        public Triangle()
        {
            _pointA = _pointB = _pointC = new Point3(0, 0, 0);
            _coordA = _coordB = _coordC = new TexCoords(0, 0);
            Material = "";
            Name = "Triangle";
        }

        public double Multiplier
        {
            get { return _multiplier; }
            set { _multiplier = value; }
        }

        public Point3 PointA
        {
            get { return _pointA; }
            set { _pointA = value; }
        }

        public Point3 PointB
        {
            get { return _pointB; }
            set { _pointB = value; }
        }

        public Point3 PointC
        {
            get { return _pointC; }
            set { _pointC = value; }
        }

        public TexCoords CoordA
        {
            get { return _coordA; }
            set { _coordA = value; }
        }

        public TexCoords CoordB
        {
            get { return _coordB; }
            set { _coordB = value; }
        }

        public TexCoords CoordC
        {
            get { return _coordC; }
            set { _coordC = value; }
        }
    }
}
